package com.simpleframe.flow;

public class Transition {

	
	
	private String condition;
	
	private Node node;
	
	public Transition(String condition, Node node){
		this.condition = condition;
		this.node = node;
	}
	
	public Transition(Node node){
		this.condition = null;
		this.node = node;
	}
	
	public void move(){
		//如果条件通过
		node.start();
	}
	
}
